package cn.shop.merchant.service;

import cn.shop.base.MyServiceImpl;
import cn.shop.transcation.backSetting.entity.BackSetting;
import cn.shop.transcation.backSetting.mapper.BackSettingMapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import org.springframework.stereotype.Service;

/**
 * @author : 李一涵
 * @date : Created in 2022-2-25 19:05
 * @description :
 */
@Service
public class BackSettingService extends BaseServiceImpl<BackSettingMapper, BackSetting> {

    public BackSetting findByKey(String key) {
        return getOne(Wrappers.<BackSetting>lambdaQuery().eq(BackSetting::getKey, key));
    }
}
